/**
 * Created by Yun on 2016-09-11.
 */

import md5 from 'md5';
import crypt from 'crypt';

export default function md5Base64(data) {
  return crypt.bytesToBase64(md5(data, { asBytes: true }));
}
